$(document).ready(function () {
	$("#kamer_wout").change(function () {
		var isChecked = $("#kamer_wout").is(":checked") ? 1 : 0;
		if (isChecked) {
			$.ajax({
				url: 'rolluiken/wout_omhoog.php',
				type: 'POST',
			});
		} else {
			$.ajax({
				url: 'rolluiken/wout_omlaag.php',
				type: 'POST',
			});
		}

	});


	$("#tempslider").on("slidestop", function () {
		var graden = $(this).val();
		$.ajax({
			type: 'POST',
			url: 'text.php',
			data: {
				'graden': graden
			},
		});
	});
});